// generic node class for a named node in the graph
// contains attributes
class NodeObj
{
    String name = ""
    String type = ""

    def attrs = new LinkedHashMap()
    EventPt eventPt = new EventPt()

    NodeObj(String name, String type)
    {
        this.name = name
        if(type!=null)
            this.type = type
    }
    
    String toString() { return "Name:"+name+" Type:"+type}
}
